package tt.dz.dao.ext.charger;

import java.util.List;

import org.apache.commons.collections.map.ListOrderedMap;
import org.springframework.stereotype.Repository;

import tt.dz.dao.base.BaseDao;
import tt.dz.entity.charger.OmsChargerBespeakBillRecord;
import tt.dz.util.Constants;

/**
 * 预约记录数据操作Dao
 * 
 * @author xielongfei
 */
@Repository
public class OmsChargerBespeakBillRecordDao extends BaseDao<OmsChargerBespeakBillRecord>{

	/**
	 * 查询预约记录列表
	 * @param paramMap
	 * @param pageNo
	 * @param pageSize
	 * @param sortName
	 * @param sortValue
	 * @return
	 */
	public List<OmsChargerBespeakBillRecord> findOmsChargerBespeakBillRecordEmbedList(
			ListOrderedMap paramsMap, Integer pageNo, Integer pageSize, String sortName,
			Integer sortValue){
		
		//分页数
		if (pageNo!=null && pageNo <= 1) {
			pageNo = 1;
		}
		//如果条件参数集为空
		if(paramsMap==null){
			paramsMap = new ListOrderedMap();
		}
		paramsMap.put(Constants.Jdbc.VALID_FLAG, 1);
		
		return super.findListByClass(OmsChargerBespeakBillRecord.class, paramsMap, pageNo, pageSize, sortName, sortValue);
		
	}
	
}
